package com.jiankangjin.appspos.responsparam.object;

import com.jiankangjin.common.json.jackson.JSONUtil;

/**
 * 本项目调用交易系统接口时，传出goods的对象JSON封装
 */
public class ResponseGoods {
	/** 商品类别  */
	private String goods_type;
	/** 商户商品编号  */
	private String goods_id;
	/** 医保药品编号 */
	private String mi_code;
	/** 医保分类  */
	private String mi_type;
	/** 诺德药品编号 */
	private String nd_code;
	/** 国药准字 */
	private String ap_code;
	/** 药品批次号 */
	private String bat_no;
	/** 物流编号 */
	private String log_code;
	/** 商品名称 */
	private String goods_name;
	/** 通用名 */
	private String cm_name;
	/** 化学名 */
	private String ch_name;
	/** 规格 */
	private String std;
	/** 单位 */
	private String unit;
	/** 商品数量 */
	private long goods_quantity;
	/** 商品单价 */
	private long goods_price;
	/** 商品金额小计 */
	private long goods_total;
	/** 商品展示地址 */
	private String goods_url;
	public ResponseGoods () {
		
	}
	public ResponseGoods(String goods_type, String goods_id, String mi_code,
			String mi_type, String nd_code, String ap_code, String bat_no,
			String log_code, String goods_name, String cm_name, String ch_name,
			String std, String unit, long goods_quantity, long goods_price,
			long goods_total, String goods_url) {
		super();
		this.goods_type = goods_type;
		this.goods_id = goods_id;
		this.mi_code = mi_code;
		this.mi_type = mi_type;
		this.nd_code = nd_code;
		this.ap_code = ap_code;
		this.bat_no = bat_no;
		this.log_code = log_code;
		this.goods_name = goods_name;
		this.cm_name = cm_name;
		this.ch_name = ch_name;
		this.std = std;
		this.unit = unit;
		this.goods_quantity = goods_quantity;
		this.goods_price = goods_price;
		this.goods_total = goods_total;
		this.goods_url = goods_url;
	}
	/** get  */
	public String getGoods_type() {
		return goods_type;
	}
	/** set  */
	public void setGoods_type(String goods_type) {
		this.goods_type = goods_type;
	}
	/** get  */
	public String getGoods_id() {
		return goods_id;
	}
	/** set  */
	public void setGoods_id(String goods_id) {
		this.goods_id = goods_id;
	}
	/** get  */
	public String getMi_code() {
		return mi_code;
	}
	/** set  */
	public void setMi_code(String mi_code) {
		this.mi_code = mi_code;
	}
	/** get  */
	public String getMi_type() {
		return mi_type;
	}
	/** set  */
	public void setMi_type(String mi_type) {
		this.mi_type = mi_type;
	}
	/** get  */
	public String getNd_code() {
		return nd_code;
	}
	/** set  */
	public void setNd_code(String nd_code) {
		this.nd_code = nd_code;
	}
	/** get  */
	public String getAp_code() {
		return ap_code;
	}
	/** set  */
	public void setAp_code(String ap_code) {
		this.ap_code = ap_code;
	}
	/** get  */
	public String getBat_no() {
		return bat_no;
	}
	/** set  */
	public void setBat_no(String bat_no) {
		this.bat_no = bat_no;
	}
	/** get  */
	public String getLog_code() {
		return log_code;
	}
	/** set  */
	public void setLog_code(String log_code) {
		this.log_code = log_code;
	}
	/** get  */
	public String getGoods_name() {
		return goods_name;
	}
	/** set  */
	public void setGoods_name(String goods_name) {
		this.goods_name = goods_name;
	}
	/** get  */
	public String getCm_name() {
		return cm_name;
	}
	/** set  */
	public void setCm_name(String cm_name) {
		this.cm_name = cm_name;
	}
	/** get  */
	public String getCh_name() {
		return ch_name;
	}
	/** set  */
	public void setCh_name(String ch_name) {
		this.ch_name = ch_name;
	}
	/** get  */
	public String getStd() {
		return std;
	}
	/** set  */
	public void setStd(String std) {
		this.std = std;
	}
	/** get  */
	public String getUnit() {
		return unit;
	}
	/** set  */
	public void setUnit(String unit) {
		this.unit = unit;
	}
	/** get  */
	public long getGoods_quantity() {
		return goods_quantity;
	}
	/** set  */
	public void setGoods_quantity(long goods_quantity) {
		this.goods_quantity = goods_quantity;
	}
	/** get  */
	public long getGoods_price() {
		return goods_price;
	}
	/** set  */
	public void setGoods_price(long goods_price) {
		this.goods_price = goods_price;
	}
	/** get  */
	public long getGoods_total() {
		return goods_total;
	}
	/** set  */
	public void setGoods_total(long goods_total) {
		this.goods_total = goods_total;
	}
	/** get  */
	public String getGoods_url() {
		return goods_url;
	}
	/** set  */
	public void setGoods_url(String goods_url) {
		this.goods_url = goods_url;
	}
	/**
	 * 转为JSON串
	 */
	@Override
	public String toString() {
		String str = super.toString();
		if(null != str && !"".equals(str)) {
			return JSONUtil.toJSON(this, this.getClass());
		} else {
			return "";
		}
	}
	
}
